<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="/react.svg" />
  <!-- 禁止手机用户放大缩小 -->
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>智慧学习平台</title>
  <link rel="stylesheet" href="./src/animate.min.css">
  <script src="https://at.alicdn.com/t/c/font_3689078_qbot6l2wpec.js"></script>
  <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?042899d71d073f2cbc947e1c1725f0bf";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    </script>    
</head>
<!-- 基本样式 -->
<style>
  html,
  body,
  #app,
  div {
    padding: 0px;
    margin: 0px;
    /* height: 100%; */
    box-sizing: border-box;
    /* 禁用文字选中 */
    user-select: none;  
    /* background-color: #E3EDF7; */
  }

  /* * {
    outline: solid #f00 1px !important;
    background: #000 !important;
    color: green !important;
  } */
</style>

<body>
  <div id="app"></div>
  <script type="module" src="/src/main.ts"></script>
  <script>
    let client = /Android|iPhone|iPad|iPod|IEMobile|Opera Mini/i.test(navigator.userAgent);
    if (client) {
      location.replace("https://m.imlearn.xyz");
    }
    window.onresize = () => {
      if (window.innerWidth < 760) {
        window.location.href = "https://m.imlearn.xyz"
      }
    };



    //     var isMobile = false; //默认PC端
    //     var result = window.matchMedia("(max-width: 760px)");
    //     if (result.matches) {
    //       isMobile = true;
    // console.log(result.matches);
    //       location.assign("http://m.imlearn.xyz")
    //       // location.reload();
    //     } else {
    //       // 强制从服务器重新加载
    //       location.assign("http://www.imlearn.xyz")
    //       // location.reload(true);

    //     }
  </script>
</body>

</html>